//doctor模块的仓库
const state = () => ({
    //医生数量
    doctor0Num: 0,
    doctor1Num: 0,
    doctor2Num: 0,
    //医生列表
    doctorList0: [],
    //健康管理师列表
    doctorList1: [],
    //营养师列表
    doctorList2: [],
})

//mutations是唯一修改state的地方
const mutations = {
    SET_DOCTOR0(state,list){
        state.doctorList0=list
    },
    SET_DOCTOR1(state, list) {
        state.doctorList1 = list
    },
    SET_DOCTOR2(state, list) {
        state.doctorList2 = list
    },
    SET_DOCTOR0NUM(state, num) {
        state.doctor0Num = num
    },
    SET_DOCTOR1NUM(state, num) {
        state.doctor1Num = num
    },
    SET_DOCTOR2NUM(state, num) {
        state.doctor2Num = num
    },
}

//action是用户处理派发action的地方，可以书写异步语句、逻辑的地方
const actions = {


}

const getters = {}
export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
}